package com.app.acitivty;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.app.activity.R;
import com.app.components.TopMenu;
import com.app.utils.ActivityTools;

public class ScenicScheduledActivity extends Activity implements
		OnClickListener {

	private Button btnSearch;

	private void initView() {
		btnSearch = (Button) findViewById(R.id.btnSearch);

	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.scenic_scheduled);
		initView();
		TopMenu topmenu = new TopMenu(this, "返回", new OnClickListener() {

			@Override
			public void onClick(View v) {
				ScenicScheduledActivity.this.finish();
//				ActivityTools.gotoActivity(ScenicScheduledActivity.this,
//						MainActivity.class);
			}
		}, R.drawable.top_button_unselect, R.drawable.top_button_selected, "预定门票");
		topmenu.onCreate();
		btnSearch.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnSearch:
			ActivityTools.gotoActivity(this, ScenicListActivity.class);
			break;

		default:
			break;
		}
			
	}
}
